package com.example.demo.mapper;

import com.example.demo.entity.Scores;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DmMapper {

    List<User> selectUser();

    @Insert("insert into \"test\".\"user\" (\"id\",\"name\",\"sex\") values ('7','阿呆','男')")
    void insert();

    List<Scores> selectUserScore();
}
